﻿app.controller('ViewTodoController', ['$scope', 'ItemsService', '$routeParams', function ($scope, ItemsService, $routeParams) {
    var id = $routeParams.id;
    
    ItemsService.getTodoItem(id).then(function (data) {
        $scope.todo = data;
    });
}]);